<?php

namespace App;

use Illuminate\Notifications\Notifiable;
use Illuminate\Support\Facades\DB;
use Illuminate\Foundation\Auth\User as Authenticatable;

class User extends Authenticatable
{
    public static function Adds($request)
    {
        $data['name']=$request['name'];
        $data['pwd']=$request['pwd'];
        return DB::table('user')->insert($request);
    }
    public static function Shows()
    {
        return DB::table('user')->paginate(1);
    }
    public static function Dels($request)
    {
        return DB::table('user')->where('id',$id)->delete($request);
    }
}
